<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Insert Footnote</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#linkTable {
	border: 1px solid black ;
	margin-right: auto;
	margin-left: auto;
}
.linkTableCell {
	font: bold 0.9em Verdana, Arial, Sans-Serif;
	text-align: right;
}
.linkTableCellTop {
	font: bold 0.9em Verdana, Arial, Sans-Serif;
	text-align: left;
}
</style>
<script language="JavaScript" type="text/javascript">
<!--
function AddFootnote() {
	var oForm = document.footnoteForm;
//validate form
	if (oForm.footnote.value == '') {
		alert('Please enter a footnote.');
		return false;
	}
	var text = document.footnoteForm.footnote.value;
	text = text.replace(/\s{2}/g, " &nbsp;");
	var html = '[footnote]' + text + '[/footnote]';
	window.opener.insertHTML(html);
	window.close();
	return true;
}
//-->
</script>
</head>

<body>

<form name="footnoteForm" onSubmit="return AddFootnote();">
<table cellpadding="4" cellspacing="0" border="0" id="linkTable">
	<tr>
		<td colspan="2" class='linkTableCellTop'>Insert Footnote</td>
	</tr>
	<tr>
		<td class='linkTableCell' colspan="2">
			<textarea name="footnote" id="footnote" cols="80" rows="10"></textarea>
		</td>
	</tr>
	<tr>
		<td align="center" class='linkTableCell'>
			<input type="submit" value="Insert Footnote" />
		</td>
		<td align="center" class='linkTableCell'>
			<input type="button" value="Cancel" onClick="window.close();" />
		</td>
	</tr>
</table>

</form>

</body>
</html>
